#ifndef RECORDBOOKS_H
#define RECORDBOOKS_H

#include "borrowedbook.h"

#include <QStandardItemModel>
#include <QWidget>

namespace Ui {
class RecordBooks;
}

class RecordBooks : public QWidget
{
    Q_OBJECT

public:
    explicit RecordBooks(QWidget *parent = nullptr);
    ~RecordBooks();

    void initWindow();
private:
    Ui::RecordBooks *ui;

    QList<BorrowedBook*>historyBooks;
    //借阅的图书文件路径
    QString borroweredBookFilePath;
    //已归还的图书文件路径
    QString returnedBookFilePath;
    void initBooks();

    void setDataTotreeView();
};

#endif // RECORDBOOKS_H
